<?php
/**
 * Created by PhpStorm.
 * User: zhd
 * Date: 2019/5/13
 * Time: 20:51
 */

namespace app\Module\Index\Controller;


use app\Module\Index\Model\CircleOneTypeModel;
use framework\controller\Controller;

class CircleOneTypeController extends Controller
{
    public function getListAction()
    {
        $oneTypeModel = new CircleOneTypeModel();
        $oneTypeModel->setFields(['name', 'image', 'id']);
        $oneTypeModel->addOrder('sort', false);
        $data = $oneTypeModel->select(['is_hide' => 0], 3600);
        return success($data);
    }

}